<?php
session_start();
error_reporting(0);

include("functions.php");

echo $_SESSION["user"];

switch($_GET['action']){
  case "rules":
    write_rules();
    break;
  case "contact":
    write_contact();
    break;
  case "faq":
    write_faq();
    break;
  case "results":
    write_results();
    break;
  case "rating":
    write_rating();
    break;
  default:
    write_home();
}
?> 
